/* 全局样式 */
body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    overflow-x: hidden;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #3949ab;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1a237e;
}

/* 导航栏样式优化 */
.navbar {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #1a237e, #3949ab) !important;
    padding: 0.8rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.navbar-brand:hover::after {
    transform: translateX(0);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 4px;
}

.navbar-nav .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.navbar-nav .nav-item.active .nav-link {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.15);
}

.navbar-nav .nav-item.active .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
}

/* Jumbotron 样式优化 */
.jumbotron {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.jumbotron:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.jumbotron::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.jumbotron::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    z-index: 0;
}

.jumbotron h1 {
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.jumbotron .lead {
    font-size: 1.25rem;
    color: #3949ab;
    position: relative;
    z-index: 1;
}

/* 卡片样式优化 */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
    overflow: hidden;
    background-color: #fff;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: linear-gradient(135deg, #1a237e, #3949ab);
    padding: 1.2rem 1.5rem;
    border-bottom: none;
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
}

.card-header h5 {
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

.card-body {
    padding: 1.8rem;
}

.card-footer {
    background-color: rgba(0, 0, 0, 0.03);
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* 表单样式优化 */
.form-control {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    font-size: 1rem;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(57, 73, 171, 0.2);
    border-color: #3949ab;
    background-color: #fff;
}

.form-control:hover {
    border-color: #bdbdbd;
}

.form-group label {
    font-weight: 500;
    color: #555;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.input-group-text {
    border-radius: 10px 0 0 10px;
    background-color: #e8eaf6;
    border: 1px solid #e0e0e0;
    color: #3949ab;
}

.input-group .form-control {
    border-radius: 0 10px 10px 0;
}

/* 按钮样式优化 */
.btn {
    border-radius: 10px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:active::after {
    opacity: 1;
    transform: scale(50, 50) translate(-50%);
    transition: all 0.5s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #1a237e, #3949ab);
    border: none;
    box-shadow: 0 4px 15px rgba(57, 73, 171, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3949ab, #1a237e);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(57, 73, 171, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #0288d1, #039be5);
    border: none;
    box-shadow: 0 4px 15px rgba(3, 155, 229, 0.3);
}

.btn-info:hover {
    background: linear-gradient(135deg, #039be5, #0288d1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(3, 155, 229, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #2e7d32, #43a047);
    border: none;
    box-shadow: 0 4px 15px rgba(67, 160, 71, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #43a047, #2e7d32);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 160, 71, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #ff8f00, #ffb300);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 179, 0, 0.3);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ffb300, #ff8f00);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 179, 0, 0.4);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #c62828, #e53935);
    border: none;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e53935, #c62828);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.4);
}

/* 表格样式优化 */
.table {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 0;
}

.table thead th {
    background-color: #e8eaf6;
    border-bottom: 2px solid #c5cae9;
    color: #3949ab;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 1rem;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f5f7ff;
    transform: scale(1.01);
}

.table td {
    vertical-align: middle;
    padding: 1rem;
    border-top: 1px solid #e0e0e0;
}

/* 页脚样式优化 */
footer {
    background: linear-gradient(135deg, #1a237e, #3949ab) !important;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem 0;
    margin-top: 4rem;
}

footer p {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 徽章样式优化 */
.badge {
    padding: 0.5em 0.8em;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 50rem;
}

.badge-pill {
    border-radius: 50rem;
}

.badge-primary {
    background: linear-gradient(135deg, #1a237e, #3949ab);
    box-shadow: 0 2px 5px rgba(57, 73, 171, 0.3);
}

.badge-success {
    background: linear-gradient(135deg, #2e7d32, #43a047);
    box-shadow: 0 2px 5px rgba(67, 160, 71, 0.3);
}

.badge-warning {
    background: linear-gradient(135deg, #ff8f00, #ffb300);
    box-shadow: 0 2px 5px rgba(255, 179, 0, 0.3);
}

.badge-danger {
    background: linear-gradient(135deg, #c62828, #e53935);
    box-shadow: 0 2px 5px rgba(229, 57, 53, 0.3);
}

.badge-info {
    background: linear-gradient(135deg, #0288d1, #039be5);
    box-shadow: 0 2px 5px rgba(3, 155, 229, 0.3);
}

/* 面包屑导航 */
.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
    font-size: 1.2rem;
    line-height: 1;
    vertical-align: middle;
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
    animation: slideUp 0.5s ease-in-out;
}

.zoom-in {
    animation: zoomIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 响应式优化 */
@media (max-width: 992px) {
    .jumbotron {
        padding: 2rem 1.5rem;
    }
    
    .card-header {
        padding: 1rem 1.25rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .jumbotron {
        padding: 2rem 1rem;
    }
    
    .card-header {
        padding: 0.8rem 1rem;
    }
    
    .card-body {
        padding: 1.2rem;
    }
    
    .table thead th {
        font-size: 0.75rem;
    }
    
    .table td[data-label] {
        display: grid;
        grid-template-columns: 40% 60%;
        padding: 0.5rem 1rem;
    }
    
    .table td[data-label]:before {
        content: attr(data-label);
        font-weight: bold;
        color: #3949ab;
    }
}

/* 打印样式优化 */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background-color: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
    
    .card-header {
        background: #f8f9fa !important;
        color: #212529 !important;
        border-bottom: 1px solid #dee2e6;
    }
}